﻿<!doctype html>
<html>
<head>
    <title>微街秀 > 举报</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link type="text/css" rel="stylesheet" href="css/base.css" />
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <link href="css/feedback.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/dialog.js"></script>
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script type="text/javascript">
        var type,url,title;
        $(document).ready(function () {
            type = getQueryString("type");
            url = getQueryString("url");
            title = getQueryString("title");
            if (type == null) type == 1;
            if (type != null && type == 2) {
                $(".topcententxt").html("拉黑");
                document.title = "微街秀 > 拉黑";
            }
            $('#submits').click(function () { submits(); });
        });

        function submits() {
            var radtype = "";
            if (title == null) title = "";
            if (url == null) url = "";
            var arr = document.getElementsByName("rad");
            for (var i = 0; i < arr.length; i++) {
                if (arr[i].checked)
                    radtype += "," + arr[i].value;
            }
            if (radtype.length > 0)
                radtype = radtype.substring(1);

            if (radtype == "" && $("#input").val() == "") {
                Alert("请填写原因");
                return;
            }
            Alert("提交成功，感谢您对微街秀产品的支持");
            clear(arr);
            return;
            
            var param = "phone=" + $("#phone").val() + "&type=" + type + "&radtype=" + radtype + "&title=" + title + "&url=" + url + "&remark=" + $("#input").val();
            AjaxStart("ajax/jubao.ashx?add", param, function (json) {
                if (json.code == 0) {
                    Alert("提交成功，感谢您对微街秀产品的支持");
                    clear(arr);               
                }
                else
                    Alert(json.msg);
            });

        }
        function clear(arr) {
            for (var i = 0; i < arr.length; i++) {
                arr[i].checked = false;
            }
            $("#input").val("");
            $("#phone").val("");
        }
    </script>
</head>
<body>
    <div class="wamtop">
        <div class="topleft" onclick="window.location.href='/client'"><img src="img/5.jpg" /></div>
        <div class="topcententxt">举报</div>
    </div>
    <div style="margin:15px;">
        <input type="checkbox" id="rad1" name="rad" class="rad" value='1' /> <label for="rad1">垃圾信息骚扰</label></div>
      <div style="margin:15px; margin-bottom:0px;">
        <input type="checkbox" id="rad2" name="rad" class="rad" value='2' /> <label for="rad2">信息带有欺骗行为</label></div>
    <div style="margin:15px;">
        <input type="checkbox" id="rad3" name="rad" class="rad" value='3' /> <label for="rad3">错别字</label>
    </div>
    <div style="margin:15px;">
        <input type="checkbox" id="rad4" name="rad" class="rad" value='4' /> <label for="rad4">标题与正文不符</label>
    </div>

    <div class="box" style="margin-top:20px">       
        <textarea id="input" class="input" placeholder="请填写您的理由"></textarea>
    </div>
    <div class="box1">
        <input type="text" id="phone" class="inputone" placeholder="联系方式">
    </div>
    <div class="box2" id="submits">
        <div class="input2">
            提 交</div>
    </div>
    <div style="margin-top: 50px;"></div>
</body>
</html>
